Skip to content

ci: add gh cache to nix action #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

ThomasK33
Copy link
Member

@ThomasK33 ThomasK33 commented Mar 3, 2025

Improves GitHub Actions environments and caching, reducing the Nix installation and store setup time from approximately 2 minutes to around 1 minute.

  • Switches to nixbuild/nix-quick-install-action for Nix setup
  • Implements Nix cache management with nix-community/cache-nix-action
  • Creates separate CI devshell with minimal dependencies
  • Makes version variables in Makefile overridable
  • Adds .ignore file for search tool configuration

Change-Id: Ie564f9efc86b64f2582a2fdbf395a6dba84c3c81
Signed-off-by: Thomas Kosiewski [email protected]

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ThomasK33 ThomasK33 self-assigned this Mar 3, 2025
@ThomasK33 ThomasK33 force-pushed the thomask33/03-03-ci_add_gh_cache_to_nix_action branch 10 times, most recently from 722cebc to f25e026 Compare March 3, 2025 09:21
Change-Id: Ie564f9efc86b64f2582a2fdbf395a6dba84c3c81
Signed-off-by: Thomas Kosiewski <[email protected]>
@ThomasK33 ThomasK33 force-pushed the thomask33/03-03-ci_add_gh_cache_to_nix_action branch from f25e026 to c5730e1 Compare March 3, 2025 09:22
@ThomasK33 ThomasK33 marked this pull request as ready for review March 3, 2025 09:28
@ThomasK33 ThomasK33 requested a review from ethanndickson March 3, 2025 09:28
Copy link
Member

@ethanndickson ethanndickson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stamped!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds .ignore file for search tool configuration

What's this do?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tools like ripgrep use it as an additional source of ignore patterns (think of it like gitignore, but not tied to git).

This config specifically allows me to include the files in the github folder by default instead of having to include them specifically.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh because it starts with . it gets ignored by those by default, I see! Good idea

Copy link
Member Author

ThomasK33 commented Mar 4, 2025

Merge activity

  • Mar 4, 1:28 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Mar 4, 1:29 AM EST: A user merged this pull request with Graphite.

@ThomasK33 ThomasK33 merged commit ae51d0e into main Mar 4, 2025
4 checks passed
@deansheather deansheather deleted the thomask33/03-03-ci_add_gh_cache_to_nix_action branch March 7, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants